import { generateRandomId } from '@/utils';

export const formConfig: PageConfig = {
    items: [
        {
            itemType: 'text',
            modelKey: 'processCode',
            columnProps: {
                label: '工序编码'
            },
            elInputProps: {
                placeholder: '请输入工序编码',
                maxlength: '30',
                showWordLimit: true,
                disabled: true
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        },
        {
            itemType: 'text',
            modelKey: 'processName',
            columnProps: {
                label: '工序名称'
            },
            elInputProps: {
                placeholder: '请输入工序名称',
                maxlength: '30',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        },
        {
            itemType: 'text',
            modelKey: 'remarks',
            columnProps: {
                label: '工序描述'
            },
            elInputProps: {
                placeholder: '请输入工序描述',
                type: 'textarea',
                autosize: true,
                maxlength: '140',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId()
            }
        }
    ]
};
